﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 保单明细
/// </summary>
[SugarTable("baodan", "保单明细")]
[Tenant("1300000000001")]
public class BaodanEntity : EntityTenant
{
    /// <summary>
    /// 创建者部门Id
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgId", ColumnDescription = "创建者部门Id")]
    public long? CreateOrgId { get; set; }

    /// <summary>
    /// 创建者部门名称
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgName", ColumnDescription = "创建者部门名称", Length = 64)]
    public string? CreateOrgName { get; set; }

    /// <summary>
    /// 生效日期
    /// </summary>
    [SugarColumn(ColumnName = "EffectiveDate", ColumnDescription = "生效日期", Length = 20)]
    public string? EffectiveDate { get; set; }

    /// <summary>
    /// 保险公司名称
    /// </summary>
    [SugarColumn(ColumnName = "CompanyName", ColumnDescription = "保险公司名称", Length = 100)]
    public string? CompanyName { get; set; }

    /// <summary>
    /// 产品名称
    /// </summary>
    [SugarColumn(ColumnName = "ProductName", ColumnDescription = "产品名称", Length = 200)]
    public string? ProductName { get; set; }

    /// <summary>
    /// 保单号
    /// </summary>
    [SugarColumn(ColumnName = "ProductNumber", ColumnDescription = "保单号", Length = 100)]
    public string? ProductNumber { get; set; }

    /// <summary>
    /// 投保人
    /// </summary>
    [SugarColumn(ColumnName = "Policyholder", ColumnDescription = "投保人", Length = 10)]
    public string? Policyholder { get; set; }

    /// <summary>
    /// 手机号
    /// </summary>
    [SugarColumn(ColumnName = "PhoneNumber", ColumnDescription = "手机号", Length = 20)]
    public string? PhoneNumber { get; set; }

    /// <summary>
    /// 保费
    /// </summary>
    [SugarColumn(ColumnName = "Cost", ColumnDescription = "保费", Length = 32, DecimalDigits = 2)]
    public decimal? Cost { get; set; }

    /// <summary>
    /// 缴费期
    /// </summary>
    [SugarColumn(ColumnName = "Cycle", ColumnDescription = "缴费期", Length = 20)]
    public string? Cycle { get; set; }

    /// <summary>
    /// 联系人
    /// </summary>
    [SugarColumn(ColumnName = "Contact", ColumnDescription = "联系人", Length = 10)]
    public string? Contact { get; set; }

    /// <summary>
    /// 保单状态
    /// </summary>
    [SugarColumn(ColumnName = "Status", ColumnDescription = "保单状态", Length = 10)]
    public string? Status { get; set; }

    /// <summary>
    /// 结算备注
    /// </summary>
    [SugarColumn(ColumnName = "Remark", ColumnDescription = "结算备注", Length = 0)]
    public string? Remark { get; set; }

    /// <summary>
    /// 净费率
    /// </summary>
    [SugarColumn(ColumnName = "Rate", ColumnDescription = "净费率", Length = 32)]
    public string? Rate { get; set; }

    /// <summary>
    /// 团队结算净费
    /// </summary>
    [SugarColumn(ColumnName = "TeamCost", ColumnDescription = "团队结算净费", Length = 32)]
    public string? TeamCost { get; set; }

    /// <summary>
    /// 经纪公司
    /// </summary>
    [SugarColumn(ColumnName = "JJCompany", ColumnDescription = "经纪公司", Length = 32)]
    public string? JJCompany { get; set; }

    /// <summary>
    /// 现结出资
    /// </summary>
    [SugarColumn(ColumnName = "Xjcz", ColumnDescription = "现结出资", Length = 32)]
    public string? Xjcz { get; set; }

    /// <summary>
    /// 公司收入情况
    /// </summary>
    [SugarColumn(ColumnName = "Gssrqk", ColumnDescription = "公司收入情况", Length = 100)]
    public string? Gssrqk { get; set; }

    /// <summary>
    /// 收入比率
    /// </summary>
    [SugarColumn(ColumnName = "Srbl", ColumnDescription = "收入比率", Length = 32)]
    public string? Srbl { get; set; }

    /// <summary>
    /// 收入金额
    /// </summary>
    [SugarColumn(ColumnName = "Srje", ColumnDescription = "收入金额", Length = 32, DecimalDigits = 2)]
    public decimal? Srje { get; set; }

    /// <summary>
    /// 公司支出情况
    /// </summary>
    [SugarColumn(ColumnName = "Gszcqk", ColumnDescription = "公司支出情况", Length = 100)]
    public string? Gszcqk { get; set; }

    /// <summary>
    /// 支出比率
    /// </summary>
    [SugarColumn(ColumnName = "Zcbl", ColumnDescription = "支出比率", Length = 32)]
    public string? Zcbl { get; set; }

    /// <summary>
    /// 支出金额
    /// </summary>
    [SugarColumn(ColumnName = "Zcje", ColumnDescription = "支出金额", Length = 32, DecimalDigits = 0)]
    public decimal? Zcje { get; set; }

}
